import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询风险分析研判全部
export const riskAnalysisJudgeList = data => {
    return $get('/risk/riskAnalysisJudge/list', data)
}

// 查询风险分析研判列表
export const riskAnalysisJudgePage = data => {
    return $get('/risk/riskAnalysisJudge/page', data)
}

// 新增风险分析研判
export const riskAnalysisJudgeAdd = data => {
    return $post('/risk/riskAnalysisJudge/add', data)
}

// 查询风险分析研判详情
export const riskAnalysisJudgeDetail = id => {
    return $get('/risk/riskAnalysisJudge/detail/'+ id)
}

// 更新风险分析研判
export const riskAnalysisJudgeUpdate = data => {
    return $post('/risk/riskAnalysisJudge/update', data)
}

// 删除风险分析研判
export const riskAnalysisJudgeDelete = id => {
    return $post('/risk/riskAnalysisJudge/delete/'+ id)
}

// 导出风险分析研判
export const riskAnalysisJudgeExport = (data,fileName) => {
    return $download('/risk/riskAnalysisJudge/export',data, fileName)
}
